{# Héritage du layout princaple appliqué aux pages de gestion des articles #}
{% extends "BlissParcBundle:Machine:layout.html.twig" %}
{% block body %}
<section id="largeTable" class="column">
    <article class="module width_3_quarter">
        <form action="{{ path('machine') }}" method="post">
            <header><h3 class="tabs_involved">Liste des Incidents</h3>
            </header>
            <div class="tab_container">
                <div id="tab1" class="tab_content tablesorter" style="display: block;">
                    <table class="tablesorter" id="tableBackOffice" cellspacing="0">
                        <thead>
                            <tr>
                                <td><input type="checkbox"></td>
                                <th class="header">Id</th>
                                <th class="header">Commentaire</th>
                                <th class="header">Date de création</th>
                                <th class="header">Date de cloture</th>
                                <th class="header">Actions</th>
                            </tr> 
                        </thead>
                        <tbody>
                                {% for entity in entities %}
                                <tr>
                                    <td><input type="checkbox" name="multiSelect[]" value="{{ entity.id }}"></td>
                                    <td>{{ entity.commentaire }}</td>
                                    <td>{{ entity.id }}</td>
                                    <td>{% if entity.dateDetection %}{{ entity.dateDetection|date('Y-m-d H:i:s') }}{% endif %}</td>
                                    <td>{% if entity.dateResolution %}{{ entity.dateResolution|date('Y-m-d H:i:s') }}{% endif %}</td>
                                </tr>
                                {% endfor %}
                            </tbody>
                        </table>
                    </div><!-- end of #tab2 -->
                </div>
            </form>
        </article>
    </section>
{% endblock %}